package com.thread4;

import java.util.concurrent.Callable;

public class CallableDe implements Callable<String> {

	@Override
	public String call() throws Exception {
		int i;
		for (i = 0; i < 10; i++) {
			System.out.println(getClass().getSimpleName() + "i==" + i);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		return "i=" + i;
	}

}
